package com.dale.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author Gyt
 * @create 2021-06-05 - 10:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_answer")
public class Answer {

    @TableId(value = "aid", type = IdType.AUTO)
    private Long aid;
    private Long qid;


    @JsonFormat(pattern="MM-dd HH:mm")
    private LocalDateTime created;
    private String answer;

    @TableLogic
    private Integer delFlag;
}
